package com.lzy.product.apis.impl;

import com.lzy.product.apis.OrderCouponServiceApi;
import com.lzy.product.dtos.OrderCouponDto;
import com.lzy.product.service.OrderCouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderCouponServiceApiImpl implements OrderCouponServiceApi {
    @Autowired
    OrderCouponService orderCouponService;

    @Override
    public Boolean createOrderCoupon(OrderCouponDto dto) {
        return orderCouponService.createOrderCoupon(dto);
    }

    @Override
    public List<OrderCouponDto> selectOrderCouponList(OrderCouponDto dto) {
        return orderCouponService.selectOrderCouponList(dto);
    }
}
